<?php


use Biz\service\advertisement\spotlight\SpotlightActivityService;

class PublishAction extends ActionPlugin
{
    const USER_LEVEL = self::LEVEL_NOTHING;

    public function main()
    {
        $p = $this->getQuery('p', 1);

        $this->setSuccess(SpotlightActivityService::getInstance($p, $this->uid)->publishPage());
    }
}